
export function custColumnFormat(item, key, showList) {
  var result = ''
  console.log(key)
  if(key == "fullname") {
    result =`<div class="custNameBox" style="display: inline-flex;">
                <img src="${item.logoUrl}" class="custLogo" v-if="${item.logoUrl}"/>
                <span v-else style="background:#325893;color: white" class="custDefaultTitle">${item.fullname.slice(0,1)}</span>
              <span class="fullname more" @click="toDetail(item.id)">${item.fullname}</span>
              <i class="icon-myshare" v-if="${item.shareStatus}" title="共享客户" style="margin-left: 5px;color: #345A91" @click="cancelCustShare(${item.id})"></i>
              </div>`
  }

  if(key == 'countryName') {
    console.log('xxx')
    result = ` <div>
                <svg class="icon" aria-hidden="true" style="font-szie:22px">
                  <use :xlink:href="#icon-${item.countryIcon}"></use>
                </svg>
                <br>${item.countryName}
              </div>`
  }



  return result
}
